import service from '@/utils/request'

// @Tags GameCollect
// @Summary 创建GameCollect
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameCollect true "创建GameCollect"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameCollect/createGameCollect [post]
export const createGameCollect = (data) => {
  return service({
    url: '/gameCollect/createGameCollect',
    method: 'post',
    data
  })
}

// @Tags GameCollect
// @Summary 删除GameCollect
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameCollect true "删除GameCollect"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameCollect/deleteGameCollect [delete]
export const deleteGameCollect = (data) => {
  return service({
    url: '/gameCollect/deleteGameCollect',
    method: 'delete',
    data
  })
}

// @Tags GameCollect
// @Summary 删除GameCollect
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GameCollect"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameCollect/deleteGameCollect [delete]
export const deleteGameCollectByIds = (data) => {
  return service({
    url: '/gameCollect/deleteGameCollectByIds',
    method: 'delete',
    data
  })
}

// @Tags GameCollect
// @Summary 更新GameCollect
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameCollect true "更新GameCollect"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameCollect/updateGameCollect [put]
export const updateGameCollect = (data) => {
  return service({
    url: '/gameCollect/updateGameCollect',
    method: 'put',
    data
  })
}

// @Tags GameCollect
// @Summary 用id查询GameCollect
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameCollect true "用id查询GameCollect"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameCollect/findGameCollect [get]
export const findGameCollect = (params) => {
  return service({
    url: '/gameCollect/findGameCollect',
    method: 'get',
    params
  })
}

// @Tags GameCollect
// @Summary 分页获取GameCollect列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GameCollect列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameCollect/getGameCollectList [get]
export const getGameCollectList = (params) => {
  return service({
    url: '/gameCollect/getGameCollectList',
    method: 'get',
    params
  })
}
